#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__

#include "md5.h"
#include "cocos2d.h"
#include "extensions/cocos-ext.h"

USING_NS_CC;
USING_NS_CC_EXT;

class HelloWorld : public cocos2d::Layer
{

public:

    static cocos2d::Scene* createScene();

    virtual bool init();  
	void menuCloseCallback(Ref* pSender);
    CREATE_FUNC(HelloWorld);

    void addChildAt(Node *node, float percentageX, float percentageY);

    LabelTTF* labelSwitch; //pay type status
    LabelTTF* labelPayBrower; //pay type status
    std::string payTypeValue=StringUtils::format("%s", "3");// 3 wx,  4 ali
    //Handle the submission parameters, tune up the wallet application
    std::string BaseApi = "http://123ttd1.jtpay.com/pay/form/PullPay";
    std::string DownLaodAddress = "http://www.jtpay.com/apk/wallet.apk";

    std::string TestUrl1 = "http://test.jtpay.com:8999/WebForm1.aspx";//waponestepurl
    std::string TestUrl2 = "http://test.jtpay.com:8999/WebForm2.aspx";//wapurl
    std::string TestUrl3 = "http://test.jtpay.com:8999/WebForm3.aspx";//sdkurl
    std::string TestUrl4 = "http://test.jtpay.com:8999/WebForm4.aspx";//sdkonestepurl

    std::string getSystemTime();
private:
    void touchDownWap(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);
    void touchDownSdk(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);
    void touchDownWapOneStep(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);
    void touchDownSdkOneStep(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);
    void touchDownSwitch(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);

    void touchDownWapUrl(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);
    void touchDownSdkUrl(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);
    void touchDownWapOneStepUrl(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);
    void touchDownSdkOneStepUrl(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);

    void touchDownBrower(Ref* pSender,cocos2d::ui::Widget::TouchEventType event);

};


#endif // __HELLOWORLD_SCENE_H__
